GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

app.js ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
cc 1
c 4
b 0
f 0
nc 1
dl 0
loc 1
rs 10
nop 0
1
const config = require('./configs/main');
2
require('../s/main.css');
3
4
// Disable Google Analytics tracking function for DEV environment.
5
// With the purpose don't break other places - here just define mock.
6
/** global: gtag */
7
if (typeof gtag === 'undefined') {
8
  window.gtag = () => {};
9
}
10
11
module.exports = {
12
  config,
13
14
  /**
15
   * Gets current Stream Id from current URL.
16
   *
17
   * @returns {string} Current Stream Id.
18
   */
19
  getStreamId: () => window.location.pathname.substring(1),
20
21
  /**
22
   * Gets auto-scrolling value, by default true.
23
   *
24
   * @returns {boolean}
25
   */
26
  getAutoScroll: () => config.autoScroll,
27
28
  /**
29
   * Sets auto-scrolling value.
30
   *
31
   * @param {boolean} value Auto-scrolling value.
32
   */
33
  setAutoScroll: (value) => {
34
    config.autoScroll = value;
35
  },
36
};
37